package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.CustomerTransfer;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerTransferService {
    void delete(Long id);

    void save(CustomerTransfer customerTransfer);

    CustomerTransfer get(Long id);

    List<CustomerTransfer> listAll();

    void update(CustomerTransfer customerTransfer);

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    PageInfo<CustomerTransfer> query(QueryObject qo);

    /**
     * 吸纳客户 添加一条移交信息 保存到数据库
     * @param customerTransfer
     */
    void gainCustomer(CustomerTransfer customerTransfer);
}
